Repository navigation
fix(engine): read Antigravity quota from the configured agy and explain empty model lists - #4057
Merged
Merged
Conversation
…in empty model lists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
On a Mac, Settings › Usage showed "Antigravity CLI did not answer within 10 seconds", then "Run agy to check its sign-in", while the same
agy --print /usageworked in a terminal. The harness check also said "Ready · 1.5.12 · no model list", while the VPS lists 4 models. RustCode discardedagy's output on both paths, so the cause could not be seen.provider_auth/antigravity_usage.rs): runs the Executable and Environment set in Settings › Harnesses › Antigravity instead of whicheveragycomes first on PATH. It keeps stdout and stderr, and a failed read now ends with whatagysaid (its JSONerror, or its last stderr lines, capped at 300 characters); failures are also written todebug.log. A timeout now says the CLI may be waiting for a sign-in and points to Sign in.acp/usage.rsharness_limits): an Antigravity thread shows the quota group of its model: Gemini, or Claude and GPT. With no model it uses Gemini, Antigravity's default._rustcode/usage/limitsis already relayed, so a paired Mac sees the quota of the machine the thread runs on. The app keeps those numbers on the thread (state/planUsage.ts), so a thread in the other group never reads them.harness/session.rs,acp_child.rs): newKnownHarness::lists_modelsflag, set only for Antigravity. When its listing comes back empty, the Check fails with what the new session offered andagy's last stderr lines, and the models listed before stay cached. Other harnesses still show "Ready · no model list".Changelog
Show Antigravity's quota in the meter under the message box, and say why an Antigravity quota read or model list fails.
Testing
_rustcode/harnesses/modelswithrefreshlists 4 models, and a manualagy acpsession/newreturnsmodelsandconfigOptions. So the empty list only happens on the Mac, and this change is what will show its cause there.antigravity_meter_reads_the_quota_group_of_the_threads_model) and error-text extraction (a_failed_read_carries_what_the_cli_said).cargo check --workspace --tests,cargo fmt --all -- --check, andbun run checkinapps/desktopall pass.